package com.sf.iisp.bind.enums;

/**
 * Created by qi on 16-7-16.
 */
public enum State {

    //绑定成功
    SUCCESS("1", "绑定成功"),
    //绑定失败
    FAILURE("0", "绑定失败"),
    //服务暂不可用
    NETWORK("2", "服务暂不可用"),
    //其他错误
    OTHER("3", "其他错误"),
    //号码已绑定
    EXISTS("1", "号码已绑定"),
    //设置预约绑定成功
    RESERVED("5", "预约成功"),
    //特殊标记，用于标记在绑定记录中，记录已经解绑的
    UNBIND("-1", "已解绑"),
    //无可用虚拟号
    UNUSABLE("6", "暂无可用虚拟号码");


    private String value;
    private String msg;

    private State(String value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return this.value;
    }

    public String getMsg() {
        return this.msg;
    }
}
